<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Dashboard">
<meta name="keyword"
	content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

<title>管理员.教师管理</title>

<!-- Bootstrap core CSS -->
<link href="${basePath}/assets/css/bootstrap.css" rel="stylesheet">
<!--external css-->
<link href="${basePath}/assets/font-awesome/css/font-awesome.css"
	rel="stylesheet" />

<!-- Custom styles for this template -->
<link href="${basePath}/assets/css/style.css" rel="stylesheet">
<link href="${basePath}/assets/css/style-responsive.css"
	rel="stylesheet">
<link rel="stylesheet" href="${basePath}/assets/css/to-do.css">

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<style>
td {
	wide: 50px;
}
</style>

<body>

	<section id="container">
		<!-- **********************************************************************************************************************************************************
      TOP BAR CONTENT & NOTIFICATIONS
      *********************************************************************************************************************************************************** -->
		<!--header start-->
		<header class="header black-bg">
			<div class="sidebar-toggle-box">
				<div class="fa fa-bars tooltips" data-placement="right"
					data-original-title="Toggle Navigation"></div>
			</div>
			<!--logo start-->
			<a href="index.html" class="logo"><b>学生管理系统</b></a>

		</header>
		<!--header end-->

		<!-- **********************************************************************************************************************************************************
      MAIN SIDEBAR MENU
      *********************************************************************************************************************************************************** -->
		<!--sidebar start-->
		<aside>
			<div id="sidebar" class="nav-collapse ">
				<!-- sidebar menu start-->
				<ul class="sidebar-menu" id="nav-accordion">
					<h5 class="centered">管理员：</h5>

					<li class="mt"><a href="${basePath }/admin/student/list.do">
							<i class="fa fa-dashboard"></i> <span>学生管理</span>
					</a></li>

					<li class="sub-menu"><a
						href="${pageContext.request.contextPath}/admin/teacher/list.do">
							<i class="fa fa-desktop"></i> <span>教师管理</span>
					</a></li>

					<li class="sub-menu"><a
						href="${basePath }/admin/subject/list.do"> <i
							class="fa fa-desktop"></i> <span>课程管理</span>
					</a></li>
					<li class="sub-menu "><a class="active"
						href="${basePath }/admin/score/list.do"> <i
							class="fa fa-desktop "></i> <span>成绩管理</span>
					</a></li>
				</ul>
				<!-- sidebar menu end-->
			</div>
		</aside>
		<!--sidebar end-->

		<!-- **********************************************************************************************************************************************************
      MAIN CONTENT
      *********************************************************************************************************************************************************** -->



		<section id="main-content">
			<section class="wrapper">
				<h3>
					<i class="fa fa-angle-right"></i> 成绩列表
				</h3>


				<!-- å­¦çåè¡¨ -->
				<div class="row mt">
					<div class="col-md-12">
						<section class="task-panel tasks-widget">
							<div class="panel-heading">
								<div class="pull-left">
									<h5>
										<i class="fa fa-tasks"></i>成绩列表
									</h5>
								</div>
								<br>
							</div>
							<div class="panel-body">
								<div class="task-content">
									<table class="table">

										<tr>
											<td><div class="task-checkbox">
													<input type="checkbox" class="list-child" value="" />
												</div></td>
											<th><span class="badge bg-theme">id</span></th>
											<th><span class="badge bg-theme">学生姓名</span></th>
											<th><span class="badge bg-theme">科目</span></th>
											<th><span class="badge bg-theme">成绩</span></th>
											<th><span class="badge bg-theme">任课教师</span></th>
											<th><span class="badge bg-theme">操作</span></th>
										</tr>

										<c:forEach items="${scores}" var="score">
											<tr>
												<td><div class="task-checkbox">
														<input type="checkbox" class="list-child" value="" />
													</div></td>
												<td>${score.id}</td>
												<td>${score.student.name}</td>
												<td>${score.teacherSubject.subject.name }</td>
												<td>${score.fraction}</td>
												<td>${score.teacherSubject.teacher.name}</td>
												<td>
													<div>
														<a
															href="${pageContext.request.contextPath}/admin/score/alterView.do?id=${score.id}">
															<button class="btn btn-primary btn-xs">
																<i class="fa fa-pencil"></i>

															</button>
														</a> <a
															href="${pageContext.request.contextPath}/admin/score/delete.do?id=${score.id}">

															<button class="btn btn-danger btn-xs">
																<i class="fa fa-trash-o "></i>
															</button>
														</a>
													</div>
												</td>
											</tr>
										</c:forEach>

									</table>

								</div>
								
							</div>
						</section>
					</div>

					<!-- /col-md-12-->
				</div>
				<!-- /row -->




			</section>
			<! --/wrapper -->
		</section>
		<!-- /MAIN CONTENT -->

		<!--main content end-->

	</section>

	<!-- js placed at the end of the document so the pages load faster -->
	<script src="${basePath}/assets/js/jquery.js"></script>
	<script src="${basePath}/assets/js/bootstrap.min.js"></script>
	<script class="include" type="text/javascript"
		src="${basePath}/assets/js/jquery.dcjqaccordion.2.7.js"></script>
	<script src="${basePath}/assets/js/jquery.scrollTo.min.js"></script>
	<script src="${basePath}/assets/js/jquery.nicescroll.js"
		type="text/javascript"></script>


	<!--common script for all pages-->
	<script src="${basePath}/assets/js/common-scripts.js"></script>

	<!--script for this page-->
	<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
	<script src="${basePath}/assets/js/tasks.js" type="text/javascript"></script>



</body>
</html>
